// 图表组件类型
export const DOM_TYPE_BAR = '100';

export const DOM_TYPE_LINE = '200';

export const DOM_TYPE_PIE = '300';

export const DOM_TYPE_VIS = '400';

export const DOM_TYPE_GAUGE = '500';

export const DOM_TYPE_PRO6 = '600';

export const DOM_TYPE_STACK_LINE = '601';

export const DOM_TYPE_STACK_BAR = '101';

export const DOM_TYPE_DOUGHNUT = '301';

export const DOM_TYPE_NEST_PIE = '302';

export const DOM_TYPE_ROS_PIE = '303';

export const DOM_TYPE_MULTIPLE_GAUGE = '501';

export const DOM_TYPE_BUBBLE = '700';

export const DOM_TYPE_RADAR = '800';

export const DOM_TYPE_FUNNEL = '110';

export const DOM_TYPE_WATER_CONTENT = '120';

export const DOM_TYPE_AREA = '130';

export const DOM_TYPE_BASCI_RELATION = '900';

export const domTypes = {
  [DOM_TYPE_BAR]: '基本柱状图',
  [DOM_TYPE_LINE]: '基本折线图',
  [DOM_TYPE_PIE]: '基本饼图',
  [DOM_TYPE_VIS]: '基本散点图',
  [DOM_TYPE_GAUGE]: '单仪表盘',
  [DOM_TYPE_PRO6]: '基本条形图',
  [DOM_TYPE_STACK_LINE]: '堆叠条形图',
  [DOM_TYPE_STACK_BAR]: '堆叠柱状图',
  [DOM_TYPE_DOUGHNUT]: '甜甜圈图',
  [DOM_TYPE_NEST_PIE]: '嵌套饼图',
  [DOM_TYPE_ROS_PIE]: '玫瑰图',
  [DOM_TYPE_MULTIPLE_GAUGE]: '多仪表盘',
  [DOM_TYPE_BUBBLE]: '气泡图',
  [DOM_TYPE_RADAR]: '雷达图',
  [DOM_TYPE_FUNNEL]: '漏斗图',
  [DOM_TYPE_WATER_CONTENT]: '象形柱图',
  [DOM_TYPE_AREA]: '基本面积图',
  [DOM_TYPE_BASCI_RELATION]: '基本关系图'
};

// 配置状态类型
export const CONF_STATUS_EDITE = 1;
export const CONF_STATUS_SAVED = 2;
export const CONF_STATUS_PUBLISH = 3;

export const types = {
  [CONF_STATUS_EDITE]: '（编辑）',
  [CONF_STATUS_SAVED]: '（已保存）',
  [CONF_STATUS_PUBLISH]: '（已发布）'
};

// 拖动组件类型
export const DRAG_TYPE_ECHART = '1'; // 图表类型

export const dragTypes = {
  [DRAG_TYPE_ECHART]: require('@/config').dragModels
};
